package com.example.aop.service;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * ClassName:SecurityAspect
 * Package:com.example.aop.service
 * Description:
 *
 * @Author:ZhangXin
 * @Create:2023/5/10-23:29
 * @Version:v1.0
 */
@Component
@Aspect
@Order(0)
public class SecurityAspect {//安全切面

    @Before("execution(* com.example.aop.service.OrderService.*(..))")
    public void beforeAdvice(){
        System.out.println("<==前置通知:安全==>");
    }
}
